package com.gjm.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/test")
@RestController
public class TestController {

    @RequestMapping("/method1")
    public void method1() {
        log.info("运行 method1");
        for (int i = 0; i < 1000000; i++) {

        }
    }

    @RequestMapping("/method2")
    public void method2() {
        log.info("运行 method2");
        int a = 1 / 0;
    }
}
